package com.example.fw;

public class User implements Comparable<User>
{
	private String id;
	private String login;
	private String email;
	private String password;

	public User setLogin(String login)
	{
		this.login = login;
		return this;
	}

	public User setEmail(String email)
	{
		this.email = email;
		return this;
	}

	public User setPassword(String password)
	{
		this.password = password;
		return this;
	}

	public String getLogin()
	{
		return login;
	}

	public String getEmail()
	{
		return email;
	}

	public String getPassword()
	{
		return password;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	@Override
	public int compareTo(User other)
	{
		return this.login.toLowerCase().compareTo(other.login.toLowerCase());
	}

}
